﻿namespace Configuration.ServerApi.Param
{
    /// <summary>
    /// 通用返回值Model
    /// </summary>
    public class ResultModel
    {
        /// <summary>
        /// 错误代码 (默认200, 正常返回)
        /// </summary>
        public int Code { get; set; } = 200;

        /// <summary>
        /// 成功或失败 (默认true, 成功)
        /// </summary>
        public bool Success { get; set; } = true;

        /// <summary>
        /// 返回消息
        /// </summary>
        public string Msg { get; set; } = "查询成功";

        /// <summary>
        /// 返回结果数量
        /// </summary>
        public int Count { get; set; } = 0;

        /// <summary>
        /// 返回数据
        /// </summary>
        public object Data { get; set; }

        /// <summary>
        /// 返回数据
        /// </summary>
        public object Data2 { get; set; }
    }
}
